/**
 * 
 */
package com.ambow.service.impl;

import java.util.List;

import com.ambow.Entity.Cell;
import com.ambow.dao.CellDao;
import com.ambow.dao.impl.CellDaoImpl;
import com.ambow.service.CellService;
import com.ambow.utils.BaseDAO;

/**
 * @author Administrator
 *
 */
public class CellServiceImpl implements CellService {
    
	 CellDao cellDao=new CellDaoImpl();
	/* (non-Javadoc)
	 * @see com.ambow.service.CellService#saveSingle(com.ambow.Entity.Cell)
	 */
	@Override
	public boolean saveSingle(Cell cell) {
		// TODO Auto-generated method stub
		
		 return cellDao.saveSingle(cell);
	}

	/* (non-Javadoc)
	 * @see com.ambow.service.CellService#queryAll(java.lang.String, java.lang.String[])
	 */
	@Override
	public List<Cell> queryAll(String sql, String[] param) {
		// TODO Auto-generated method stub
		
		return cellDao.queryAll(sql, param);
	}

	/* (non-Javadoc)
	 * @see com.ambow.service.CellService#update(com.ambow.Entity.Cell)
	 */
	@Override
	public boolean update(Cell cell) {
		// TODO Auto-generated method stub
		return cellDao.update(cell);
	}

	/* (non-Javadoc)
	 * @see com.ambow.service.CellService#queryOne(java.lang.String, java.lang.String[])
	 */
	@Override
	public Cell queryOne(String sql, String[] param) {
		// TODO Auto-generated method stub
		return cellDao.queryOne(sql, param);
	}

	@Override
	public Cell getOne(Class c, int id) {
		// TODO Auto-generated method stub
		return cellDao.getOne(c, id);
	}

	/* (non-Javadoc)
	 * @see com.ambow.service.CellService#delete(com.ambow.Entity.Cell)
	 */
	@Override
	public boolean delete(Cell cell) {
		// TODO Auto-generated method stub
		return cellDao.delete(cell);
	}

}
